package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 洪俊新
 * @date : 2021/3/6 17:26
 * @description:
 */
@ApiModel("查询关注的作者返回JSON类")
public class AFollowingRes {
    @ApiModelProperty(value="作者id", position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String authorId;

    /**
     * 作者昵称
     * isnull 0
     */        @ApiModelProperty(value="作者昵称",position=2)
    private String authorNickname;
    /**
     * 作者简介
     * isnull 0
     */        @ApiModelProperty(value="作者简介",position=3)
    private String authorInfo;
    /**
     * 作者头像
     * isnull 0
     */        @ApiModelProperty(value="作者头像",position=4)
    private String authorImg;
     private Integer role;
    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthorNickname() {
        return authorNickname;
    }

    public void setAuthorNickname(String authorNickname) {
        this.authorNickname = authorNickname;
    }

    public String getAuthorInfo() {
        return authorInfo;
    }

    public void setAuthorInfo(String authorInfo) {
        this.authorInfo = authorInfo;
    }

    public String getAuthorImg() {
        return authorImg;
    }

    public void setAuthorImg(String authorImg) {
        this.authorImg = authorImg;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "AFollowingRes{" +
                "authorId='" + authorId + '\'' +
                ", authorNickname='" + authorNickname + '\'' +
                ", authorInfo='" + authorInfo + '\'' +
                ", authorImg='" + authorImg + '\'' +
                ", role=" + role +
                '}';
    }
}
